package com.lagou.rpc.balance;

import com.lagou.rpc.netty.RpcClinetChannelHolder;

/**
 * @ClassName RpcLoadBanlance
 * @Description 负载均衡接口
 * @Author playboy
 * @Date 2021/6/8 7:17 下午
 * @Version 1.0
 **/
public interface RpcLoadBanlance {

	/**
	 * 获取要访问的channel
	 *
	 * @return
	 */
	public RpcClinetChannelHolder getChannel();

	/**
	 * 设置当前通道的响应时间
	 *
	 * @param rpcClinetChannelHolder
	 * @param time
	 */
	public void setResponseTime(RpcClinetChannelHolder rpcClinetChannelHolder, long time);
}
